<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * SitePayEase.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SitePayEase extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('site_pay_ease', function (Blueprint $table) {
            $table->bigIncrements('id');//BigID unsigned
            $table->unsignedBigInteger('pay_id');//所属站点ID
            $table->string('mid', 32);// 首信易支付app_key
            $table->string('secret_key', 128);// 首信易支付安全密钥
            $table->string('return_url');// 首信易支付同步通知地址
            $table->text('gateways', 32);// 首信易支付多语言网关json数组

            // 注意时间戳位数
            $table->timestamps();

            // index
            $table->unique('pay_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('site_pay_ease');
    }
}